<form method="post">
	Text<input value='src=\"http://www.womenwise.com.au/assets/phpThumb/images/0309201112391.jpg\" alt=\"\" width=\"800\" height=\"600\"' type="text" name="text" /><br/>
	Pattern<textarea type="text" name="pattern">/[\w:\-]?src[\s]*?=[\s]*?(\\"[^"]+\"|\'[^\']+\'|\w+)/is</textarea><br/>
	<input type="submit" /><br/><br/><br/>
</form>
<?php
$text='src=\"http://www.womenwise.com.au/assets/phpThumb/images/0309201112391.jpg\" alt=\"\" width=\"800\" height=\"600\"';
$pattern='/[\w:\-]?src[\s]*?=[\s]*?(\\"[^"]+\"|\w+)/i';
preg_match_all($pattern,$text,$arr);
print_r($arr);
